<!DOCTYPE html>
	<html lang="en">
	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width,initial-scale=1.0">
		<title>Document</title>
		<link rel="stylesheet" href="../layui/css/layui.css">
		<link rel="stylesheet" type="text/css" href="../css/per-data.css">
	</head>
	<body>
		<a href="javascript:history.back(-1)" class="back"><img src="../img/back.png" height="18px"></a>
		<div class="data">
			<p>填写个人资料</p>
			<input type="text" name="nickname" placeholder="请输入昵称">
			<div class="age">
				<input type="text" name="old" placeholder="请输入年龄">
				<img src="../img/5c.png">
			</div>
			<input type="text" name="qianming" placeholder="请输入签名">									
			<div class="flex sex">
				<div class="pitch-on boy">
					<img src="../img/male-4.png">
					<span>男</span>
				</div>
				<div class="girl">
					<img src="../img/female-1.png">
					<span>女</span>
				</div>
			</div>
			<div class="next center">下一步</div>
		</div>
		
		<script src="../js/jquery-3.3.1.js"></script>
		<script src="../layui/layui.all.js"></script>
		<script src="../js/per-data.js"></script>
	</body>
</html>
<script type="text/javascript">

	$('.next').click(function(){
		var nickname=$('input[name="nickname"]').val();
		var old=$('input[name="old"]').val();
		var sex=$('.pitch-on span').html();
		var qianming=$('input[name="qianming"]').val();
		$.post('/meiyou/modifyInfo',{nickname:nickname,old:old,sex:sex,qianming:qianming},function(data){
			if(data.code==100){
				layer.msg(data.msg);
				window.location.href='upload.html'
			}else{
				layer.msg(data.msg)
			}
		});
	});
</script>